<?php $this->load->view($cfg['tpl__admin'] . 'public/header')?>
<div class="so_main">
 
  <form id="form1">
  <div class="form3">
	<?php if (!empty($row['content'])){?>
    <dl class="lineD">
      <dt>询价说明：</dt>
      <dd>
        <?php echo $row['content']?>
		
    </dl>
	<?php }?>

	<?php if (!empty($row['contact'])){?>
	<dl class="lineD">
      <dt>联系人：</dt>
      <dd>
        <?php echo $row['contact']?>
		
    </dl>
	<?php }?>

	<?php if (!empty($row['company'])){?>
	<dl class="lineD">
      <dt>公司名称：</dt>
      <dd>
        <?php echo $row['company']?>
		
    </dl>
	<?php }?>

	<?php if (!empty($row['address'])){?>
	<dl class="lineD">
      <dt>地址：</dt>
      <dd>
        <?php echo $row['address']?>
		
    </dl>
	<?php }?>
	<?php if (!empty($row['tel'])){?>
	<dl class="lineD">
      <dt>电话：</dt>
      <dd>
        <?php echo $row['tel']?>
		
    </dl>
	<?php }?>
	<?php if (!empty($row['fax'])){?>
	<dl class="lineD">
      <dt>传真：</dt>
      <dd>
        <?php echo $row['fax']?>
		
    </dl>
	<?php }?>
	<?php if (!empty($row['email'])){?>
	<dl class="lineD">
      <dt>E-mail：</dt>
      <dd>
        <?php echo $row['email']?>
		
    </dl>
	<?php }?>
	<?php if (!empty($row['website'])){?>
	<dl class="lineD">
      <dt>网站：</dt>
      <dd>
        <?php echo $row['website']?>
		
    </dl>
	<?php }?>
	<?php if (!empty($row['msn'])){?>
	<dl class="lineD">
      <dt>MSN：</dt>
      <dd>
        <?php echo $row['msn']?>
		
    </dl>
	<?php }?>
	<?php if (!empty($row['qq'])){?>
	<dl class="lineD">
      <dt>QQ：</dt>
      <dd>
        <?php echo $row['qq']?>
		
    </dl>
	<?php }?>

	<dl class="lineD">
      <dt>回复标题：</dt>
      <dd>
        <input type="text" id="reply_title" name="reply_title" value="<?php echo $row['reply_title']?>">
		
    </dl>

	<dl class="lineD">
      <dt>回复内容：</dt>
      <dd>
        <textarea id="reply_content" name="reply_content" style="width:300px;height:250px"><?php echo $row['reply_content']?></textarea>
		
    </dl>
	<dl class="lineD">
      <dt>状态：</dt>
      <dd>
        <input type="radio" id="is_reply" name="is_reply" value="0" <?php if ($row['is_reply'] != 1){?>checked="checked"<?php }?>>未回复
		 <input type="radio" id="is_reply" name="is_reply" value="1" <?php if ($row['is_reply'] == 1){?>checked="checked"<?php }?>>已回复
			
    </dl>
	
	<div class="page_btm">
      <input type="button" class="btn_b" value="确定" ONCLICK="reply('<?php echo $row['id']?>')" />&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp<INPUT TYPE="reset" class="btn_b">
    </div>
	<input type="hidden" name="oldstatus" value="<?php echo $row['is_reply']?>">
	<input type="hidden" name="email" value="<?php echo $row['email']?>">
  </div>
  </form>
</div>

<?php $this->load->view($cfg['tpl__admin'] . 'public/footer')?>

<script type="text/javascript">
function reply(id)
{
	postdata('form1', "<?php echo site_url('admin/production/reply')?>" + "/" + id, 'dd');
}

function dd(d)
{
	if(d.code == '1'){
	$.jBox.tip(d.msg, 'success');
	window.setTimeout(function () {
		window.location.href="<?php echo site_url('admin/production/order')?>";
	}, 1000);
	}else{
	$.jBox.tip(d.msg,'error');
	}
	} 
</script>
